package com.iakuil.app.common.core.constant;

/***
 * Redis Key常量
 *
 * @author Kai
 */
public class RedisConstant {

    /**
     * 默认缓存前缀
     */
    public static final String DEFAULT_CACHE_KEY_PREFIX = SysConstant.APP_SYMBOL + ":wx:";

    /**
     * Redis Pub/Sub模式单播通道名
     */
    public static final String WS_UNICAST_CHANNEL = SysConstant.APP_SYMBOL + ":ws:p2p";

    /**
     * Redis Pub/Sub模式广播通道名
     */
    public static final String WS_BROADCAST_CHANNEL = SysConstant.APP_SYMBOL + ":ws:broadcast";

    /**
     * 默认WS用户标识
     */
    public static final String WS_ID_ATTR_NAME = "uid";

    /**
     * 默认的Stream Key
     */
    public static final String DEFAULT_STREAM_KEY = SysConstant.APP_SYMBOL + "-stream-1";

    /**
     * 默认Stream消费组
     */
    public static final String DEFAULT_STREAM_GROUP = SysConstant.APP_SYMBOL + "-group-1";

    /**
     * 默认Stream消费者
     */
    public static final String DEFAULT_STREAM_CONSUMER = SysConstant.APP_SYMBOL + "-consumer-1";
}
